import { request } from 'ice';

export default {
  list: async (params) => {
    const reParams = { page: params.current, limit: params.pageSize, ...params };
    delete reParams.current;
    delete reParams.pageSize;

    return await request({
      url: '/api/sys/log/list',
      method: 'GET',
      params: reParams,
    });
  },
};
